﻿
using SelfManagement.Mvc.Bundle;
using System.Web.Optimization;

namespace SelfManagement.Web
{

    public class BundleConfig
    {

        /// <summary>
        /// Content Css包，通用样式
        /// </summary>
        public const string CssBundle = "~/bundles/css";

        public const string TasksCssBundle = "~/bundles/taskcss";

        public const string TasksJsBundle = "~/bundles/taskjs";

        public const string JsJQueryBundle = "~/bundles/jquery";
        /// <summary>
        /// jquery validate js包
        /// </summary>
        public const string JsJQueryValidateBundle = "~/bundles/jqueryval";

        public const string JsBundle = "~/bundles/scripts";

        public const string UEditorFull = "~/bundles/ueditor/ueditorfull";

        public const string UEditorSimple = "~/bundles/ueditor/ueditorsimple";

        /// <summary>
        /// Bootstrap Upload Css
        /// </summary>
        public const string BootstrapUploadCssBundle = "~/bundles/BootstrapUpload/css";
        /// <summary>
        /// Bootstrap Upload Js
        /// </summary>
        public const string BootstrapUploadJsBundle = "~/bundles/BootstrapUpload/js";

        public static void RegisterBundles(BundleCollection bundles)
        {
            BundleTable.EnableOptimizations = false;


            bundles.Add(new ResolveUrlStyleBundle(CssBundle)
                .Include("~/assets/plugins/font-awesome/css/font-awesome.css")
                .Include("~/assets/plugins/bootstrap/css/bootstrap.min.css")
                .Include("~/assets/plugins/uniform/css/uniform.default.css")
                //PAGE LEVEL PLUGIN STYLES
                .Include("~/assets/plugins/bootstrap-toastr/toastr.css",
                        "~/assets/plugins/bootstrap-modal/css/bootstrap-modal.css",
                        //"~/assets/plugins/bootstrap-modal/css/bootstrap-modal-bs3patch.css",
                        "~/assets/plugins/gritter/css/jquery.gritter.css",
                        "~/assets/plugins/bootstrap-datetimepicker/css/datetimepicker.css",
                        "~/assets/plugins/bootstrap-daterangepicker/daterangepicker-bs3.css",
                        "~/assets/plugins/fullcalendar/fullcalendar/fullcalendar.css",
                        "~/assets/plugins/jqvmap/jqvmap/jqvmap.css",
                        "~/assets/plugins/jquery-easy-pie-chart/jquery.easy-pie-chart.css",
                        "~/assets/plugins/select2/css/select2.css",
                        "~/assets/plugins/bootstrap-treeview/css/bootstrap-treeview.css",
                        "~/assets/plugins/bootstrap-switch/static/stylesheets/bootstrap-switch-conquer.css",
                        "~/assets/plugins/jquery-nestable/jquery.nestable.css",
                        "~/assets/plugins/jquery-multi-select/css/multi-select.css",
                        //THEME STYLES
                        "~/assets/css/style-conquer.css",
                        "~/assets/css/style.css",
                        "~/assets/css/style-responsive.css",
                        "~/assets/css/plugins.css", 
                        "~/assets/css/pages/tasks.css",
                        "~/assets/css/themes/default.css",
                        //custom css
                        "~/assets/css/custom.css"));

            bundles.Add(new ScriptBundle(JsJQueryBundle).Include(
                        "~/assets/plugins/jquery-1.12.0.js"));

            bundles.Add(new ScriptBundle(JsBundle).Include(
                        "~/assets/plugins/globalize/globalize.js",
                        //"~/assets/moment-with-locales.js",
                        //CORE CSS
                        "~/assets/plugins/jquery-ui/jquery-ui-1.10.3.custom.min.js",
                        "~/assets/plugins/bootstrap/js/bootstrap.min.js",
                        "~/assets/plugins/bootstrap-hover-dropdown/twitter-bootstrap-hover-dropdown.min.js",
                        "~/assets/plugins/jquery-slimscroll/jquery.slimscroll.min.js",
                        "~/assets/plugins/jquery.blockui.min.js",
                        "~/assets/plugins/jquery.cokie.min.js",
                        "~/assets/plugins/uniform/jquery.uniform.min.js",
                        //PAGE LEVEL CSS
                        "~/assets/plugins/jqvmap/jqvmap/jquery.vmap.js",
                        //"~/assets/plugins/jqvmap/jqvmap/maps/jquery.vmap.russia.js",
                        //"~/assets/plugins/jqvmap/jqvmap/maps/jquery.vmap.world.js",
                        //"~/assets/plugins/jqvmap/jqvmap/maps/jquery.vmap.europe.js",
                        //"~/assets/plugins/jqvmap/jqvmap/maps/jquery.vmap.germany.js",
                        //"~/assets/plugins/jqvmap/jqvmap/maps/jquery.vmap.usa.js",
                        //"~/assets/plugins/jqvmap/jqvmap/data/jquery.vmap.sampledata.js",
                        "~/assets/plugins/jquery.peity.min.js",
                        "~/assets/plugins/jquery.pulsate.min.js",
                        "~/assets/plugins/jquery.confirm.min.js",
                        "~/assets/plugins/jquery-knob/js/jquery.knob.js",
                        "~/assets/plugins/flot/jquery.flot.js",
                        "~/assets/plugins/flot/jquery.flot.resize.js",
                        "~/assets/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js",
                        "~/assets/plugins/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js",
                        "~/assets/plugins/bootstrap-daterangepicker/moment.min.js",
                        "~/assets/plugins/bootstrap-daterangepicker/daterangepicker.js",
                        "~/assets/plugins/gritter/js/jquery.gritter.js",
                        "~/assets/plugins/fullcalendar/fullcalendar/fullcalendar.min.js",
                        "~/assets/plugins/jquery-easy-pie-chart/jquery.easy-pie-chart.js",
                        "~/assets/plugins/jquery.sparkline.min.js",
                        "~/assets/plugins/select2/js/select2.js",
                        "~/assets/plugins/select2/js/i18n/zh-CN.js",
                        "~/assets/plugins/jquery-multi-select/js/jquery.multi-select.js",
                        "~/assets/plugins/jquery-multi-select/js/jquery.quicksearch.js",
                        //"~/assets/plugins/datatables/media/js/jquery.dataTables.min.js",
                        //"~/assets/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.js",
                        //"~/assets/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js",
                        //"~/assets/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js",
                        //"~/assets/plugins/ckeditor/ckeditor.js",
                        //"~/assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js",
                        "~/assets/plugins/bootstrap-switch/static/js/bootstrap-switch.js",
                        "~/assets/plugins/bootstrap-toastr/toastr.js",
                        "~/assets/plugins/bootstrap-modal/js/bootstrap-modalmanager.js",
                        "~/assets/plugins/bootstrap-modal/js/bootstrap-modal.js",
                        //"~/assets/plugins/bootstrap-select/bootstrap-select.js",
                        "~/assets/plugins/bootstrap-treeview/js/bootstrap-treeview.js",
                        "~/assets/plugins/jquery-nestable/jquery.nestable.js",

                        //CUSTOM CSS
                        "~/assets/scripts/app.js",
                        //"~/assets/admin/dataseletor.js"
                        //"~/assets/common/jquery.unionSelect.js",
                        //"~/assets/common/jquery.unionSelect.config.js",
                        "~/assets/scripts/custom.js"
                        ));

            bundles.Add(new ScriptBundle(UEditorFull).Include(
                        "~/assets/plugins/ueditor/ueditor.config.full.js",
                        "~/assets/plugins/ueditor/ueditor.all.js",
                        "~/assets/plugins/ueditor/lang/zh-cn/zh-cn.js"));

            bundles.Add(new ScriptBundle(UEditorSimple).Include(
                        "~/assets/plugins/ueditor/ueditor.config.simple.js",
                        "~/assets/plugins/ueditor/ueditor.all.js",
                        "~/assets/plugins/ueditor/lang/zh-cn/zh-cn.js"));

            bundles.Add(new ScriptBundle(JsJQueryValidateBundle).Include(
                        "~/assets/plugins/validate/jquery.validate.js",
                        "~/assets/plugins/validate/jquery.validate.unobtrusive.js"));

            bundles.Add(new StyleBundle(TasksCssBundle).Include(
                        "~/assets/css/pages/tasks.css"));
            bundles.Add(new StyleBundle(TasksJsBundle).Include(
                        "~/assets/scripts/tasks.js"));

            bundles.Add(new ScriptBundle(BootstrapUploadJsBundle).Include(
                        "~/assets/plugins/bootstrap-fileupload/bootstrap-fileupload.js"));

            bundles.Add(new ResolveUrlStyleBundle(BootstrapUploadCssBundle).Include(
                        "~/assets/plugins/bootstrap-fileupload/bootstrap-fileupload.css"));
        }
    }
}